package com.psp.park.persist.dao;

import java.util.List;
import java.util.Set;

import com.psp.park.model.AddressBean;

public interface AddressDao {

	int insert(AddressBean bean);

	int deleteById(String aid);

	int update(AddressBean bean);

	AddressBean selectById(String aid);

	/**
	 * 通过 aid 批量查询用户的地址
	 * 
	 * @param addressIds
	 * @return
	 */
	List<AddressBean> selectByIds(Set<String> aids);

	int selectCount(String uid, int type);

	List<AddressBean> selectList(int page, int pageSize, String uid, int type);
}
